package com.gss.stockLedger.form;

import java.util.Date;

public class VendorWiseReportFilter {

	private Date startDate;
	private Date endDate;
	private String companyName;
	private String vendorCode;
	private String specVendorCode;
	private String email;
	
	private Date secStartDate;
	private Date secEndDate;
	
	public Date getStartDate() {
		return startDate;
	}
	public Date getEndDate() {
		return endDate;
	}
	public String getCompanyName() {
		return companyName;
	}
	public String getVendorCode() {
		return vendorCode;
	}
	public void setStartDate(Date startDate) {
		this.startDate = startDate;
		if(null != startDate){
			Date newStartDate = new Date();
			newStartDate.setTime(startDate.getTime());
			newStartDate.setTime(newStartDate.getTime() - 100);
			setSecStartDate(newStartDate);
		}
	}
	public void setEndDate(Date endDate) {
		this.endDate = endDate;
		if(null != endDate){
			Date newEndDate = new Date();
			newEndDate.setTime(endDate.getTime());
			newEndDate.setTime((newEndDate.getTime() + (24*60*60*1000)) - 1); 
			setSecEndDate(newEndDate);
		}
	}
	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}
	public void setVendorCode(String vendorCode) {
		this.vendorCode = vendorCode;
	}
	public String getSpecVendorCode() {
		return specVendorCode;
	}
	public void setSpecVendorCode(String specVendorCode) {
		this.specVendorCode = specVendorCode;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	
	public Date getSecStartDate() {
		return secStartDate;
	}
	public void setSecStartDate(Date secStartDate) {
			this.secStartDate = secStartDate;
	}
	public Date getSecEndDate() {
		return secEndDate;
	}
	public void setSecEndDate(Date secEndDate) {
		this.secEndDate = secEndDate;
	}
}
